package fr.upmc.tps.mdoc.models;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


public class Connexion {

	private HttpSession session = null;
	private HttpServletRequest request ;	

	public Connexion(HttpServletRequest request) {
		
		this.request = request;;

	}

	
	public void connect() {
		
		session = request.getSession(true);
		
		//Cookie cookie = new Cookie("cle", user.getLogin());
		

	}
	
	public void disconnect() {
		
		session.invalidate();
		
	}
	
	
}
